builder-tool: Fix handling of layout properties
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Nov 2019 13:47:35 +0000 (08:47 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 Nov 2019 13:47:35 +0000 (08:47 -0500)
We were not properly identifying layout properties
that need to be kept, causing GtkGrid left-attachment
to go missing in widget-factory.ui.

gtk/tools/gtk-builder-tool-simplify.c

index dc6462882e23d12f5ff7cac6027a806985ac8fa8..03cb93110792a8663653392f2ceafd4ab8e10292 100644 (file)
@@ -181,8 +181,8 @@ needs_explicit_setting (GParamSpec *pspec,
     { "GtkRadioButton", "draw-indicator", PROP_KIND_OBJECT },
     { "GtkWidget", "hexpand", PROP_KIND_OBJECT },
     { "GtkWidget", "vexpand", PROP_KIND_OBJECT },
-    { "GtkGrid", "top-attach", PROP_KIND_LAYOUT },
-    { "GtkGrid", "left-attach", PROP_KIND_LAYOUT },
+    { "GtkGridLayoutChild", "top-attach", PROP_KIND_LAYOUT },
+    { "GtkGridLayoutChild", "left-attach", PROP_KIND_LAYOUT },
   };
   gboolean found;
   gint k;